﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;

namespace LuckyLoot.Common
{
    public class Cryptography
    {
        public static string Encrypt(string value)
        {
            byte[] clear = Encoding.UTF8.GetBytes(value);
            byte[] hash = new SHA1CryptoServiceProvider().ComputeHash(clear);

            return BitConverter.ToString(hash).Replace("-", "").ToLower();        
        }

    }
}
